package com.elitel.frame.main.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 脚本服务操作记录表
 * @TableName cfg_extsql_log
 */
public class CfgExtsqlLog implements Serializable {
    /**
     * 主键
     */
    private String extsqlLogId;

    /**
     * 服务编码
     */
    private String servicecode;

    /**
     * 服务名称
     */
    private String servicename;

    /**
     * 数据源
     */
    private String dtDbKey;

    /**
     * sql
     */
    private String dtSql;

    /**
     * 创建人
     */
    private String createdUser;

    /**
     * 创建时间
     */
    private Date createdTime;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public String getExtsqlLogId() {
        return extsqlLogId;
    }

    /**
     * 主键
     */
    public void setExtsqlLogId(String extsqlLogId) {
        this.extsqlLogId = extsqlLogId;
    }

    /**
     * 服务编码
     */
    public String getServicecode() {
        return servicecode;
    }

    /**
     * 服务编码
     */
    public void setServicecode(String servicecode) {
        this.servicecode = servicecode;
    }

    /**
     * 服务名称
     */
    public String getServicename() {
        return servicename;
    }

    /**
     * 服务名称
     */
    public void setServicename(String servicename) {
        this.servicename = servicename;
    }

    /**
     * 数据源
     */
    public String getDtDbKey() {
        return dtDbKey;
    }

    /**
     * 数据源
     */
    public void setDtDbKey(String dtDbKey) {
        this.dtDbKey = dtDbKey;
    }

    /**
     * sql
     */
    public String getDtSql() {
        return dtSql;
    }

    /**
     * sql
     */
    public void setDtSql(String dtSql) {
        this.dtSql = dtSql;
    }

    /**
     * 创建人
     */
    public String getCreatedUser() {
        return createdUser;
    }

    /**
     * 创建人
     */
    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    /**
     * 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfgExtsqlLog other = (CfgExtsqlLog) that;
        return (this.getExtsqlLogId() == null ? other.getExtsqlLogId() == null : this.getExtsqlLogId().equals(other.getExtsqlLogId()))
            && (this.getServicecode() == null ? other.getServicecode() == null : this.getServicecode().equals(other.getServicecode()))
            && (this.getServicename() == null ? other.getServicename() == null : this.getServicename().equals(other.getServicename()))
            && (this.getDtDbKey() == null ? other.getDtDbKey() == null : this.getDtDbKey().equals(other.getDtDbKey()))
            && (this.getDtSql() == null ? other.getDtSql() == null : this.getDtSql().equals(other.getDtSql()))
            && (this.getCreatedUser() == null ? other.getCreatedUser() == null : this.getCreatedUser().equals(other.getCreatedUser()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExtsqlLogId() == null) ? 0 : getExtsqlLogId().hashCode());
        result = prime * result + ((getServicecode() == null) ? 0 : getServicecode().hashCode());
        result = prime * result + ((getServicename() == null) ? 0 : getServicename().hashCode());
        result = prime * result + ((getDtDbKey() == null) ? 0 : getDtDbKey().hashCode());
        result = prime * result + ((getDtSql() == null) ? 0 : getDtSql().hashCode());
        result = prime * result + ((getCreatedUser() == null) ? 0 : getCreatedUser().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", extsqlLogId=").append(extsqlLogId);
        sb.append(", servicecode=").append(servicecode);
        sb.append(", servicename=").append(servicename);
        sb.append(", dtDbKey=").append(dtDbKey);
        sb.append(", dtSql=").append(dtSql);
        sb.append(", createdUser=").append(createdUser);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}